package com.richpencil.modules.utils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @Classname MapUtil
 * @Description TODO
 * @Date 2020/9/21 15:26
 * @Created by Administrator
 */
public class MapUtil {

    /**
     * map只读 转 可读写
     * @return
     */
    public static List<Map> MapWrite(List<Map> list) {
        return list.stream().map(map ->
                new HashMap(map)
        ).collect(Collectors.toList());
    }
}
